package com.solution.admin.product.entity;

import java.math.BigDecimal;
import java.math.BigDecimal;
import java.math.BigDecimal;
import com.solution.common.entity.BaseEntity;

/**
 * 历史价格信息实体类
 * 
 * @author xu_cc
 * @date 2017-12-11 16:51:57
 */
public class ProductPriceHistoryEntity extends BaseEntity {
	private static final long serialVersionUID = 1L;
	private String levelName;

	/** 商品ID */
	private Long productId;

	/** 基价 */
	private BigDecimal basePrice;

	/** 价格浮动 */
	private BigDecimal diffPrice;

	/** 客户价格 */
	private BigDecimal customerPrice;

	/** 客户级别（价格级别） */
	private String customerLevel;

	public ProductPriceHistoryEntity() {
	}

	/**
	 * 
	 * @author xu_cc
	 * @date 创建时间：2017年12月11日 下午5:15:48
	 * @param productId
	 * @param basePrice
	 * @param diffPrice
	 * @param customerLevel
	 * @param modifier
	 */
	public ProductPriceHistoryEntity(Long productId, BigDecimal basePrice, BigDecimal diffPrice, String customerLevel, String modifier) {
		this.productId = productId;
		this.basePrice = basePrice;
		this.diffPrice = diffPrice;
		this.customerPrice = basePrice.add(diffPrice);
		this.customerLevel = customerLevel;
		super.setModifier(modifier);
	}

	/**
	 * 商品ID
	 */
	public Long getProductId() {
		return productId;
	}

	public void setProductId(Long productId) {
		this.productId = productId;
	}

	/**
	 * 基价
	 */
	public BigDecimal getBasePrice() {
		return basePrice;
	}

	public void setBasePrice(BigDecimal basePrice) {
		this.basePrice = basePrice;
	}

	/**
	 * 价格浮动
	 */
	public BigDecimal getDiffPrice() {
		return diffPrice;
	}

	public void setDiffPrice(BigDecimal diffPrice) {
		this.diffPrice = diffPrice;
	}

	/**
	 * 客户价格
	 */
	public BigDecimal getCustomerPrice() {
		return customerPrice;
	}

	public void setCustomerPrice(BigDecimal customerPrice) {
		this.customerPrice = customerPrice;
	}

	/**
	 * 客户级别（价格级别）
	 */
	public String getCustomerLevel() {
		return customerLevel;
	}

	public void setCustomerLevel(String customerLevel) {
		this.customerLevel = customerLevel;
	}

	/**
	 * @return the levelName
	 */
	public String getLevelName() {
		return levelName;
	}

	/**
	 * @param levelName
	 *            the levelName to set
	 */
	public void setLevelName(String levelName) {
		this.levelName = levelName;
	}

}
